<template>
    <div ref="containerRef"></div>
</template>
<script lang="ts">
import { defineComponent,onMounted,ref } from 'vue'
import {draw} from './draw'

export default defineComponent({
    setup() {
        //通过ref 建立与dom之间得关系
        const containerRef = ref();
        onMounted(()=>{
            draw(containerRef.value)
        })
        return {
            containerRef
        }
    },
})
</script>
